package com.malamute.system.entity;

import javax.persistence.OneToOne;

import com.malamute.core.entity.BaseEntity;

/**
 * @author AceGuan gjybst@163.com
 * @description 护照
 * @date 2012-2-6 上午12:27:18
 * @version v1.0
 */
//@Entity
//@Table(name = "T_SYS_PASSPORT")
public class Passport extends BaseEntity {
	private String no;
	// mappedBy 为关联实体中的 内置属性对象passport
	@OneToOne(mappedBy = "passport")
	private User user;

	/**
	 * 获取user
	 * 
	 * @return user
	 */

	public User getUser() {
		return user;
	}

	/**
	 * 设置user
	 * 
	 * @param user
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * 获取no
	 * 
	 * @return no
	 */

	public String getNo() {
		return no;
	}

	/**
	 * 设置no
	 * 
	 * @param no
	 */
	public void setNo(String no) {
		this.no = no;
	}

}
